home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / CDICTION / CSTATICI.C < prev    next >
Text File  |  1989-09-15  |  1KB  |  33 lines

  1. /******************************************************************************
  2. CStaticInteger.h
  3.  
  4. SUPERCLASS = CStaticString
  5.  
  6. ******************************************************************************/
  7.  
  8. #include "CStaticInteger.h"
  9. #include "defs.h"
  10.  
  11. /******************************************************************************/
  12. void CStaticInteger::IStaticInteger(CView *anEnclosure, CBureaucrat *aSupervisor,
  13.                     Int16 aWidth, Int16 aHeight, Int16 aHEncl, Int16 aVEncl,
  14.                     SizingOption aHSizing, SizingOption aVSizing, Int32 initValue)
  15. {
  16.     Str255    numString;
  17.     
  18.     NumToString( initValue, numString);
  19.     CStaticString::IStaticString( anEnclosure, aSupervisor, aWidth, aHeight,
  20.                 aHEncl, aVEncl, aHSizing, aVSizing, numString);
  21.  
  22. }    /* CStaticInteger::IStaticInteger */
  23. /******************************************************************************/
  24. void CStaticInteger::SetIntValue( Int32    aValue)
  25. {
  26.     Str255    numString;
  27.     
  28.     NumToString( aValue, numString);
  29.     CStaticString::SetStaticString( numString);
  30.  
  31. }    /* CStaticInteger::SetIntValue */
  32. /******************************************************************************/
  33.